TAR=homework3
OBJ=homework3.o
ASFLAGS+=--32 --gstabs
LDFLAGS+=-m elf_i386

$(TAR):$(OBJ)
	ld $(LDFLAGS) -o $@ $^

%.o:%.S
	as $(ASFLAGS) -o $@ $^

clean:
	$(RM) -r *.o $(TAR)
